package com.project.petLossSystem.common;

/**
 * Service层返回Controller层的字符串结果
 */
public enum ServiceResultEnum {

    SUCCESS("success"),
    FAILURE("failure"),
    SAME_CATEGORY_EXIST("已存在同级同名的分类！"),
    DB_ERROR("数据库错误！"),
    DATA_NOT_EXIST("数据不存在！"),
    LOGIN_ERROR("登录失败！"),
    LOGIN_USER_LOCKED("账户已被锁定！"),
    SAME_LOGIN_ID_EXIST("已存在相同账号！"),
    SAME_ADDRESS_EXIST("已存在同级同名的地址！"),
    PARENT_CATEGORY_DELETED("上级分类已被删除！"),
    PARENT_ADDRESS_DELETED("上级地址已被删除！"),
    PASSWORD_ERROR("密码错误"),
    PET_NOT_EXIST("主图未检测到相关宠物！"),
    POST_NOT_OWNED("未拥有！");
    private String result;
    private ServiceResultEnum(String result){
        this.result = result;
    }

    public String getResult(){
        return this.result;
    }
}
